<?php
	function C8()
	{
		$Servidor = "localhost";
		$Conn = null;
		$Usuario = "root";
		$Contrasena = "favirguezc";
		$Conn=mysql_connect($Servidor,$Usuario,$Contrasena);
		echo '
		<table border = "1">
			<tr>
				<th>Nombres</th>
				<th>Apellidos</th>
				<th>Año</th>
			</tr>';
	    $SQL = 'SELECT 
		CONCAT(ALUMNO.Per_PrimerNombre," ",ALUMNO.Per_SegundoNombre) AS nombres,
		CONCAT(ALUMNO.Per_PrimerApellido," ",ALUMNO.Per_SegundoApellido) AS apellidos,
		YEAR(MATRICULAS.Mat_Fecha) AS ano
		FROM ALUMNO,MATRICULAS
		WHERE ALUMNO.Per_Id = MATRICULAS.Per_Id AND YEAR(MATRICULAS.Mat_Fecha) = YEAR(CURRENT_DATE());';
		mysql_select_db("ieee",$Conn);
		$RS = mysql_query($SQL,$Conn);
		while($fila=mysql_fetch_array($RS,MYSQL_ASSOC))
		{
			echo "<tr><td>".$fila["nombres"]."</td>".
					"<td>".$fila["apellidos"]."</td>".
					"<td>".$fila["ano"]."</td></tr>";
		} 
		mysql_free_result($RS);
		mysql_close($Conn);
		echo'</table>'.
		'<a href = "Bases.php"> Regresar a Consultas</a>';
	}
	?>
	